<?php !defined('IN_ONEZ') && exit('Access Denied');?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Language" content="zh_CN">
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=yes">
<title>二维码登录</title>
<link rel="stylesheet" type="text/css" href="images/style.css" />
<script src="js/jquery-1.6.2.min.js" type="text/javascript" charset="utf-8"></script>
</head>
<body>
<div class="main">
<div class="guide"></div>
<div class="loginPanel normalPanel">
<div class="lang">

</div>
<div class="title pngBackground">
<h1>二维码登录</h1>
</div>
<div class="waiting panelContent">
<div class="qrcodeContent" style="position:relative;">
<img class="qrcode lightBorder" src="?action=qrcode&token=<?php echo $token?>&size=6" />
<div id="guideTrigger" style="position:absolute;z-index:9999;width:260px;height:100%;left:50%;top:0px;margin-left:-130px;"></div>
</div>
<div class="info">

<div class="normlDesc loginTip pngBackground" style="position:relative;">
<div class="loginTipL pngBackground"></div>
<div class="loginTipR pngBackground"></div>
<p><a href="qraccount.apk">下载安卓版手机客户端</a></p>
</div>

<div class="normlDesc loginTip pngBackground" style="position:relative;">
<div class="loginTipL pngBackground"></div>
<div class="loginTipR pngBackground"></div>
<p><a href="?action=bindusr" style="color:#ff5656" target="_blank">绑定账号</a></p>
</div>


</div>
<script>
function update(){
  $.ajax({
    url:'<?php echo $PHP_SELF?>',
    type:'post',
    cache: false,
    dataType:'html',
    data:{action:'update',token:'<?php echo $token?>'},
    success:function(data){
      if(data=='Y'){
        window.location.href='<?php echo $PHP_SELF?>?action=synlogin&token=<?php echo $token?>';
      }
    }
  });
}
window.setInterval("update()",2000);
</script>
</body>
</html>